﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Xwy.Practical.ViewModels
{
    public class SendEmailVM
    {
        [Required(ErrorMessage ="请输入接收者邮箱")]
        [EmailAddress(ErrorMessage = "请输入正确的邮箱格式")]
        public string ReceiveEmail { get; set; }

        [Required(ErrorMessage = "请输入主题")]
        public string Suject { get; set; }


        [Required(ErrorMessage = "请输入内容")]
        public string Content { get; set; }
    }
}
